package com.vegetable.modules.mapper.allocation;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.vegetable.modules.entity.allocation.AllocationCollectionDetail;
import com.vegetable.modules.entity.allocation.po.DeductionStatisticsQueryDTO;
import com.vegetable.modules.entity.allocation.vo.DeductionStatisticsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * <p>
 * 分配回款明细表 Mapper 接口
 * </p>
 *
 * @author Qoder
 * @since 2025-10-08
 */
@Mapper
public interface AllocationCollectionDetailMapper extends BaseMapper<AllocationCollectionDetail> {

    /**
     * 统计扣款情况
     * @param queryDTO 查询参数DTO
     * @return 扣款统计列表
     */
    List<DeductionStatisticsVO> selectDeductionStatistics(@Param("queryDTO") DeductionStatisticsQueryDTO queryDTO);
}